package com.whzykj.common;

public enum ReturnEnum {
	APP_CONFIG_TEST("A0000","APP测试环境"),
	APP_CONFIG_ADMIT("A0001","APP发布环境"),
	APP_CONFIG_RELEASE("A0002","APP生产环境"),
	
	RETURN_SUCCESS("S0000","接口调用成功"),
	RETURN_SUCCESS_NODATA("S1000","接口调用成功,无数据"),
	LOGIN_SUCCESS("S0001","登录成功"),
	LOGOUT_SUCCESS("S0001","退出成功"),
	INFO_SUCCESS("S0002","信息查询成功"),
	INFO_UPDATE_SUCCESS("S0003","更新成功"),
	GOODS_LIST_SUCCESS("S0006","商品列表查询成功"),
	DIC_LIST_SUCCESS("S0007","字典列表查询成功"),
	RECOMMEND_SUCCESS("S0008","热推商品查询成功"),
	RECOMMEND_LIST_SUCCESS("S0009","热推商品列表查询成功"),
	SHOPPING_ADD_SUCCESS("S0010","商品添加购物车成功"),
	SHOPPING_LIST_SUCCESS("S0011","购物车商品列表查询成功"),
	ORDER_ADD_SUCCESS("S0012","订单提交成功"),
	ORDER_LIST_SUCCESS("S0013","订单列表查询成功"),
	ORDERDETAIL_LIST_SUCCESS("S0014","订单详情查询成功"),
	APPVERSION_SUCCESS("S0015","版本信息查询成功"),
	MODIFY_PWD_SUCCESS("S0016","密码修改成功"),
	PAY_SUCCESS("S0017","支付成功"),
	BALANCE_QUERY_SUCCESS("S0018","余额查询成功"),
	NO_DATA_SUCCESS("S0019","查询成功，没有数据！"),
	ACCT_SEQ_SUCCESS("S0020","账户交易流水查询成功！"),
	PRE_PAY_SUCCESS("S0021","生成预支付交易单成功"),
	BALANCE_PAY_SUCCESS("S0022","生成余额充值交易单成功"),
	
	
	ORDER_ADD_FAIL("E0001","商品库存不足，或者超过每日限购数量！"),
	ORDER_ALLOW_FAIL("E0002","增减库存时操作出错！"),
	ORDER_TIME_FAIL("E0003","现在是禁止下单时间，下单失败！"),
	NO_REGISTER("E0030","未注册"),
	USER_ROLE_FAIL("E0031","只有普通客户才能登录APP！"),
	MODIFY_PWD_FAIL("E0032","密码修改失败！"),
	NO_PAY_ORDER("E0033","没有查到需要支付的订单！"),
	NO_ACCT("E0034","没有支付账户，请联系管理 员创建支付账户！"),
	NO_ACCT_FREEZE("E0035","当前账户已冻结，请联系管理员！"),
	NO_ACCT_CLOSE("E0036","当前账户已注销，请联系管理员！"),
	NO_ACCT_BALANCE("E0037","当前账户没有余额，请先充值！"),
	NO_ACCT_BALANCECOM("E0038","当前账户余额不足，请先充值！"),
	PRE_PAY_FAIL("E0039","生成预支付交易单失败！"),
	BALANCE_PAY_FAIL("E0040","生成余额充值交易单失败！"),
	
	
	ADDRESS_DEFAULT_SUCCESS("S0004","默认收货地址查询成功"),
	ADDRESS_LIST_SUCCESS("S0005","收货地址列表查询成功"),
	DEL_ADDRESS_SUCCESS("S0008","删除收货地址成功"),
	UPDATE_ADDRESS_SUCCESS("S0009","修改收货地址成功"),
	UPDATE_PASSWORD_SUCCESS("S0010","修改密码成功"),
	RELIEVE_THIRD_LOGIN_SUCCESS("S0011","解绑成功"),
	ADD_THIRD_LOGIN_SUCCESS("S0012","绑定成功"),
	ADD_ORDER_SUCCESS("S0013","订单入库成功"),
	ADD_BANK_SUCCESS("S0014","银行卡绑定成功"),
	QUERY_BANK_SUCCESS("S0015","查询银行卡绑定信息成功"),
	UPDATE_BANK_SUCCESS("S0016","银行卡信息修改成功"),
	QUERY_ORDER_LIST_SUCCESS("S0017","订单列表查询成功"),
	CASH_SUCCESS("S0018","提现申请成功！"),
	ORDER_INFO_SUCCESS("S0019","订单信息查询成功"),
	LOGIN_OUT_SUCCESS("S0020","登出成功"),
	RESET_PASSWORD_SUCCESS("S0021","重置密码成功"),
	ONLINE_MAKE_SUCCESS("S0022","在线预约成功"),
	EVALUATE_SUCCESS("S0023","评价门店成功"),
	EVALUATE_LIST_SUCCESS("S0024","查询门店评价成功"),
	FEEDBACK_SUCCESS("S0025","反馈成功"),
	
	RETURN_FAIL("E0001","接口调用异常"),
	NAMESPACE_ERROR("E0002","namespace送入错误"),
	TYPE_ERROR("E0003","type送入错误"),
	VERSION_ERROR("E0004","版本号送入错误"),
	KER_ERROR("E0005","密钥送入错误"),
	LOGIN_FAIL("E0006","账号密码不匹配"),
	INFO_FAIL("E0007","个人信息查询失败"),
	INFO_UPDATE_FAIL("E0008","更新用户不存在"),
	ADDRESS_DEFAULT_FAIL("E0009","无默认收货地址信息"),
	ADDRESS_LIST_FAIL("E0010","无收货地址列表信息"),
	STORE_LIST_FAIL("E0011","无门店列表信息"),
	UPDATE_PASSWORD_FAIL("E0012","原密码错误"),
	RELIEVE_THIRD_LOGIN_FAIL0("E0013","第三方未绑定，不能解绑"),
	RELIEVE_THIRD_LOGIN_FAIL1("E0014","绑定信息有误，不能解绑"),
	PRODUCT_PRICE_FAIL("E0015","商品初始价格有误"),
	ADD_THIRD_LOGIN_FAIL("E0016","第三方已绑定过乐租账号,不能重复绑定"),
	LOGIN_THIRD_LOGIN_FAIL("E0017","该账号与乐租账号未绑定"),
	QUERY_BANK_FAIL("E0018","无银行卡绑定信息"),
	UPDATE_BANK_FAIL("E0019","银行卡信息修改失败"),
	PRODUCT_SPE_FAIL("E0020","规格值无对应有效商品"),
	PRODUCT_ID_LOSE("E0021","产品型号ID和商品ID不能都为空"),
	PRODUCT_GOODS_LOSE("E0022","未查询到商品"),
	CASH_FAIL("E0023","余额不足"),
	ORDER_INFO_FAIL("E0024","订单信息查询失败"),
	RAND_FAIL("E0025","验证码输入不对"),
	BANK_CHECK_FAIL("E0026","实名认证失败"),
	TOKEN_CHECK_FAIL("E0027","token认证失败"),
	CHECK_PARA_FAIL("E0028","参数缺失"),
	RESET_PASSWORD_FAIL("E0029","原密码错误"),
	ONLINE_MAKE_FAIL("E0031","在线预约失败"),
	EVALUATE_FAIL("E0032","评价失败"),
	EVALUATE_LIST_FAIL("E0033","查询门店评价结果为空"),
	FEEDBACK_FAIL("E0034","反馈失败"),
	RETURN_CHECK_RENEW_FAIL("E0035","续租校验不通过，不允许跨期续租！"),
	RETURN_CHECK_BANKONE("E0036","只能绑定一张银行卡"),
	MOBILE_HAVE_REG("E0037","该手机号已经注册"),
	VIP_ISNOT_SPRED("E0038","该会员不是推广员");
	
	private String code;
	private String errorMsg;
	private ReturnEnum(String code, String errorMsg) {
         this.code = code;
         this.errorMsg = errorMsg;
     }
	public String getCode(){
		return this.code;
	}
	public String getErrorMsg(){
		return this.errorMsg;
	}
}
